package com.ptu.entity;

import lombok.Data;
import java.time.LocalDateTime;

public class ChatMessage {
    private Long id;
    private String sessionId;
    private String sender;
    private String receiver;
    private String content;
    private String type;
    private Integer status;
    private LocalDateTime createTime;

    public ChatMessage() {
    }

    public ChatMessage(Long id, String sessionId, String sender, String receiver, String content, String type, Integer status, LocalDateTime createTime) {
        this.id = id;
        this.sessionId = sessionId;
        this.sender = sender;
        this.receiver = receiver;
        this.content = content;
        this.type = type;
        this.status = status;
        this.createTime = createTime;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    public String getReceiver() {
        return receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "ChatMessage{" +
                "id=" + id +
                ", sessionId='" + sessionId + '\'' +
                ", sender='" + sender + '\'' +
                ", receiver='" + receiver + '\'' +
                ", content='" + content + '\'' +
                ", type='" + type + '\'' +
                ", status=" + status +
                ", createTime=" + createTime +
                '}';
    }
}